FROM harbor-dmz.yunzhen-data.com/base/centos7-python3.7.0:v1.2

RUN yum install dlv -y \
    && yum install binutils -y \
    && yum install vim -y \
    && yum install gdb -y \
    && yum install git -y \
    && yum install wget -y \
    && wget https://mirrors.aliyun.com/golang/go1.19.3.linux-amd64.tar.gz  \
    && tar -C /usr/local -zxvf go1.19.3.linux-amd64.tar.gz \
    && rm /go1.19.3.linux-amd64.tar.gz

ENV PATH /usr/local/go/bin:$PATH

ENV GO111MODULE=on \
    GOPROXY=https://goproxy.cn,direct \
    GIN_MODE=release \
    PORT=8089

COPY . /yx/server/titan-template

WORKDIR /yx/server/titan-template

RUN go build ./cmd/app.go

EXPOSE 8089

ENTRYPOINT ["./app --titan.local.config.file=./configs/dev/app.yaml"]
